package com.yungu.swift.system.sys.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yungu.swift.base.ResponseData;
import com.yungu.swift.system.sys.dao.SysPointSiteCompanyMapper;
import com.yungu.swift.system.sys.dao.SysWayCompanyMapper;
import com.yungu.swift.system.sys.model.dto.SysPointSiteCompanyDto;
import com.yungu.swift.system.sys.model.dto.SysWayCompanyDto;
import com.yungu.swift.system.sys.service.SysPointSiteCompanyService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @Author: xiuyin.cui@joymo.tech
 * @Date: 2021/4/1 22:52
 * @Description: SystemWayCompanyServiceImpl
 */
@Service
public class SysPointSiteCompanyServiceImpl implements SysPointSiteCompanyService {

    @Autowired
    private SysPointSiteCompanyMapper<SysPointSiteCompanyDto> sysPointSiteCompanyMapper;

    @Override
    public ResponseData<List<SysPointSiteCompanyDto>> listPointSiteByOrganization(String organizationUuid) {
        return ResponseData.buildSuccessResponse(sysPointSiteCompanyMapper.listPointSiteByOrganization(organizationUuid));
    }
}
